<?php
// 连接数据库
DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', '');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'sitename');

$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to   MySQL: ' . mysqli_connect_error() );

// 设置连接器编码方式
mysqli_set_charset($dbc, 'utf8');
